﻿
var CONTEXT_PATH = getContext();
if(CONTEXT_PATH==null || CONTEXT_PATH=="") alert("context为空");

var TREE_PATH = "/component/tree";

var TREE_SCRIPT = [	
	CONTEXT_PATH + TREE_PATH + "/js/package.js",
	CONTEXT_PATH + TREE_PATH + "/js/Map.js",
	CONTEXT_PATH + TREE_PATH + "/js/Component.js",
	CONTEXT_PATH + TREE_PATH + "/js/Tree.js"

	]

for(var i = 0 ;  i < TREE_SCRIPT.length; i ++){
	alert(TREE_SCRIPT[i]);
	var str = "<script src='"+TREE_SCRIPT[i]+"'></script>";
	document.write(str);
}

var componentCssPath = getContext() + TREE_PATH + "/component.css";
document.write('<link rel="StyleSheet" href="' + componentCssPath + '" type="text/css" />');

var treeCssPath = getContext() + TREE_PATH + "/component.css";
document.write('<link rel="StyleSheet" href="' + treeCssPath + '" type="text/css" />');

